package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysSettleDepositMapper;
import com.ruoyi.system.domain.SysSettleDeposit;
import com.ruoyi.system.service.ISysSettleDepositService;

/**
 * 入驻保证金信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-29
 */
@Service
public class SysSettleDepositServiceImpl implements ISysSettleDepositService 
{
    @Autowired
    private SysSettleDepositMapper sysSettleDepositMapper;

    /**
     * 查询入驻保证金信息
     * 
     * @param settleDepositId 入驻保证金信息主键
     * @return 入驻保证金信息
     */
    @Override
    public SysSettleDeposit selectSysSettleDepositBySettleDepositId(Long settleDepositId)
    {
        return sysSettleDepositMapper.selectSysSettleDepositBySettleDepositId(settleDepositId);
    }

    /**
     * 查询入驻保证金信息列表
     * 
     * @param sysSettleDeposit 入驻保证金信息
     * @return 入驻保证金信息
     */
    @Override
    public List<SysSettleDeposit> selectSysSettleDepositList(SysSettleDeposit sysSettleDeposit)
    {
        return sysSettleDepositMapper.selectSysSettleDepositList(sysSettleDeposit);
    }

    /**
     * 新增入驻保证金信息
     * 
     * @param sysSettleDeposit 入驻保证金信息
     * @return 结果
     */
    @Override
    public int insertSysSettleDeposit(SysSettleDeposit sysSettleDeposit)
    {
        sysSettleDeposit.setCreateTime(DateUtils.getNowDate());
        return sysSettleDepositMapper.insertSysSettleDeposit(sysSettleDeposit);
    }

    /**
     * 修改入驻保证金信息
     * 
     * @param sysSettleDeposit 入驻保证金信息
     * @return 结果
     */
    @Override
    public int updateSysSettleDeposit(SysSettleDeposit sysSettleDeposit)
    {
        return sysSettleDepositMapper.updateSysSettleDeposit(sysSettleDeposit);
    }

    /**
     * 批量删除入驻保证金信息
     * 
     * @param settleDepositIds 需要删除的入驻保证金信息主键
     * @return 结果
     */
    @Override
    public int deleteSysSettleDepositBySettleDepositIds(Long[] settleDepositIds)
    {
        return sysSettleDepositMapper.deleteSysSettleDepositBySettleDepositIds(settleDepositIds);
    }

    /**
     * 删除入驻保证金信息信息
     * 
     * @param settleDepositId 入驻保证金信息主键
     * @return 结果
     */
    @Override
    public int deleteSysSettleDepositBySettleDepositId(Long settleDepositId)
    {
        return sysSettleDepositMapper.deleteSysSettleDepositBySettleDepositId(settleDepositId);
    }
}
